/********************************************************/
/*	KeyboardHandler class by George Chew						*/
/*	For use in GeorgeLib								*/
/*	Created Mar 2013									*/
/*														*/
/*	Version 0001										*/
/********************************************************/

#ifndef __KEYBOARD_HANDLER_H__
#define __KEYBOARD_HANDLER_H__

#include "stdafx.h"
#include "Logger.h"

namespace GeorgeLib
{

class DLLEXPORT KeyboardHandler
{

	/*		How to use this class 		*/
	// KeyboardHandler keyboard;
	// if(keyboard.keys['w'] == true) cout << "w pressed" << endl;

public:
	bool keys[255];
	bool special[21];
	
	KeyboardHandler(void);		// Constructor
	~KeyboardHandler(void);		// Destructor

	void	HandleKeyboardDownFunc		(uchar key);
	void	HandleKeyboardUpFunc		(uchar key);
	void	HandleSpecialDownFunc		(int key);
	void	HandleSpecialUpFunc			(int key);
};

} // namespace GeorgeLib

#endif // __KEYBOARD_HANDLER_H__ //